{% extends "admin/base.html" %}
{% block title %}重置密码 - 管理员控制台{% endblock %}

{% block content %}
<div class="max-w-xl mx-auto">
  <!-- 卡片容器：带阴影和圆角 -->
  <div class="bg-white rounded-lg shadow-lg p-6">
    <h1 class="text-2xl font-bold text-gray-800 mb-6">
      重置 {{ user.username }} 的密码
    </h1>
    
    <form method="POST" class="space-y-4">
      <input type="hidden" name="csrf_token" value="{{ csrf_token_value }}">
      
      <!-- 新密码输入组 -->
      <div>
        <label for="new_password" class="block text-sm font-medium text-gray-700 mb-1">
          新密码
        </label>
        <input 
          type="password" 
          id="new_password" 
          name="new_password" 
          placeholder="请输入新密码"
          class="w-full border border-gray-300 rounded-md px-3 py-2 text-sm 
                 focus:outline-none focus:ring-2 focus:ring-primary/50 transition-colors"
          required
        >
        <p class="mt-1 text-xs text-gray-500">
          建议至少8位，包含字母、数字和特殊字符
        </p>
      </div>
      
      <!-- 确认按钮：带悬停动画 -->
      <div class="flex justify-end">
        <button type="submit" class="btn-primary px-5 py-2 hover:bg-primary/80 transition-colors">
          确认重置
        </button>
      </div>
    </form>
  </div>
</div>
{% endblock %}